package com.logistics.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.easybuild.core.hibernate.StringPojoHibernateHandler;

import com.logistics.ExpressCompany;
import com.logistics.ExpressCompanyQueryParam;

@Repository
public class ExpressCompanyDaoImpl extends StringPojoHibernateHandler<ExpressCompany> implements ExpressCompanyDao {

	@Override
	public List<ExpressCompany> query(ExpressCompanyQueryParam param) {
		return queryWithParameter(param, "e", "e.id", new QueryCriteriaSetter() {

			@Override
			public void setCriteria(StringBuffer arg0, Map<String, Object> arg1) {
				
			}
		});
	}

	@Override
	protected Class<ExpressCompany> getEntityClass() {
		return ExpressCompany.class;
	}

}
